<template>
	<view class="page">
		<view class="content">
			<textarea name="" id="" cols="30" rows="10" v-model="txt"></textarea>
			<div class="bottom">{{txt.length}}/6000字</div>
		</view>
		<div class="submitcontent">
			<div class="submit">
				检测敏感词
			</div>
			<div class="submit" @click="gourl">
				确认修改	</div>
		</div>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				txt:''
			}
		},
		created(option) {
			console.log(this.$route.query)
			this.txt = this.$route.query.txt
		},
		methods: {
			gourl(){
				uni.navigateBack()
			}
		}
	}
</script>

<style scoped lang="scss">
	uni-page-body {
		height: 100%;
	}
.page{
	background-color:#F2F1F6 ;
		height: 100%;
	padding: 20rpx;
	.submitcontent{
		display: flex;
		justify-content: space-between;
		margin-top: 60rpx;
		.submit:nth-child(1){
			color: #ff0000;
			background-color: #F2F1F6;
			border: 2rpx solid #ff0000;
		}
		.submit:nth-child(2){
			color: #ffffff;
			background-color: #ff0000;
		}
		.submit{
			text-align: center;
			width: 45%;
			line-height: 100rpx;
			border-radius: 10rpx;
		}
	}
	.content{
		background-color: #ffffff;
		padding: 20rpx;
		border-radius: 10rpx;
		height: 1200rpx;
		.bottom{
			color: #cccccc;
		}
		textarea{
			width: 100%;
			height: 90%;
		}
	}
}
</style>
